package tech.wetech.admin.modules.system.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author lu
 * @description 安卓机白名单的实体类
 * @date 2019年08月09日 9:10
 */
@ApiModel(value = "android_list", description = "安卓机白名单")
@Table(name = "android_list")
public class AndroidList {
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @ApiModelProperty(value="设备编号",name="deviceNo",required=true)
    @NotBlank(message = "通讯类型不能为空")
    @Column(name = "device_no")
    private String deviceNo;

    @ApiModelProperty(value="设备mac",name="deviceMac")
    @Column(name = "device_mac")
    private String deviceMac;

    @ApiModelProperty(value="访问时间",name="accessTime",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Column(name = "access_time")
    private Date accessTime;

    @ApiModelProperty(value="创建时间",name="create_time",hidden=true)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Column(name = "create_time")
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    public String getDeviceMac() {
        return deviceMac;
    }

    public void setDeviceMac(String deviceMac) {
        this.deviceMac = deviceMac;
    }

    public Date getAccessTime() {
        return accessTime;
    }

    public void setAccessTime(Date accessTime) {
        this.accessTime = accessTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
